package com.qfoud.edu.shiro.framwork.pojo;

import com.qfoud.edu.shiro.framwork.auth.AuthticationInfo;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author xiaobobo
 * @title: Subject
 * @projectName cd-java-2303-project-parent
 * @description: 这个类就是用户登陆之后用户信息的存储
 * @date 2023/5/11  15:32
 */

public class Subject {

    //用户信息
    private AuthticationInfo authticationInfo=new AuthticationInfo();

    private List<String> roles=new ArrayList<>();
    private List<String> perms=new ArrayList<>();

    public Subject() {
    }

    public Subject(AuthticationInfo authticationInfo, List<String> roles, List<String> perms) {
        this.authticationInfo = authticationInfo;
        this.roles = roles;
        this.perms = perms;
    }

    public AuthticationInfo getAuthticationInfo() {
        return authticationInfo;
    }

    public void setAuthticationInfo(AuthticationInfo authticationInfo) {
        this.authticationInfo = authticationInfo;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    public List<String> getPerms() {
        return perms;
    }

    public void setPerms(List<String> perms) {
        this.perms = perms;
    }
}
